<template>
  <div class="LawKnow">
    <div class="custom-home-header">
      <div class="title">EasyLaw</div>
      <div class="sub-title">The elbsest ingel ald far ntemsrtlens students</div>
    </div>
    <div class="content">
      <div class="back-top" @click="navBack">
        <u-icon name="arrow-left" size="28"></u-icon>
        <span class="back-name">LawKnow</span>
      </div>
      <u-section :right="false" :font-size="36" color="#409eff"  title="lntrducticn"></u-section>
      <div class="text-wrapper">
        <div>
          <span class="bold">Overvtew</span>:Lswkncw prowices  detaled
          legal knowledge for iriermational students stutying n China with specific functions
          obdivded into the Legsl Hub and Risk List.
        </div>
        <div>
          <span class="bold">Legsl Hub:</span> lt provides categorized legal krowledse that concerms vafious egal
          issues encountered in cailyMe,with visual aids fer simplified underslanding.
        </div>
        <div>
          <span class="bold">Risk Lst:</span> It focuses en owerlooked leggl   iska,ensuring  studerts  compiance  weh  Laws and regulations to prevent potential
        </div>
      </div>
      <u-section :right="false" :font-size="36" color="#409eff"  title="Functions"></u-section>
      <div class="menu-item" @click="routeTo(item.path)" v-for="item in menuList" :style="{backgroundColor: item.color}">
        <img :src="item.icon" alt="">
        <div class="menu-detail">
          <div class="menu-name">{{ item.title }}</div>
          <div class="menu-desc">{{ item.desc }}</div>
        </div>
      </div>

    </div>
  </div>
</template>

<script>
export default {
  components: {
  },
  data() {
    return {
      menuList: [
        {
          icon: '/static/icon5.png',
          path: '/pages/LawKnow/LegalHub',
          title: 'Legal Hub',
          desc: '',
          color: 'rgb(104,192,255)'
        },
        {
          path: '',
          icon: '/static/icon6.png',
          title: 'Risk List',
          desc: '',
          color: 'rgb(104,192,255)'
        },
      ]

    }
  },
  onLoad() {

  },
  methods: {
    navBack() {
      this.$u.route({
        type: 'navigateBack'
      })
    },
    routeTo(path) {
      if (path) {
        this.$u.route({
          type: 'navigateTo',
          url: path
        })
      }
    }
  }
}
</script>

<style lang="scss">
.LawKnow {
  .menu-item{
    display: flex;
    padding: 20rpx 0;
    border-radius: 4px;
    align-items: center;
    margin-top: 50rpx;
    img {
      width: 60rpx;
      height: 60rpx;
      margin-right: 40rpx;
      margin-left: 100rpx;
    }
    .menu-detail {
      display: flex;
      flex-direction: column;
      justify-content: center;
      .menu-name {
        font-size: 48rpx;
        color: #FFFFFF;
      }
      .menu-desc {
        font-size: 24rpx;
        color: #FFFFFF;
        opacity: 0.5;
      }
    }
  }

  .text-wrapper {
    font-size: 28rpx;
    color: #999999;
    line-height: 40rpx;
    margin-top: 20rpx;
    > div {
      margin-bottom: 20rpx;
    }
    .bold {
      color: #666;
      font-weight: bold;
    }
  }
  .back-top {
    display: flex;
    align-items: center;
    padding: 10rpx 0;
    margin-bottom: 40rpx;
  }
  .back-name {
    margin-left: 20rpx;
    font-size: 28rpx;
    color: #333333;
  }
  .custom-home-header {
    height: 100rpx;
    background-color: #409eff;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    .title {
      font-size: 36rpx;
      line-height: 100rpx;
      padding-left: 50rpx;
    }
    .sub-title {
      font-size: 24rpx;
      color: #a6a2a2;
      margin-left: 20rpx;
      padding-top: 50rpx;
    }
  }
  .content {
    padding: 20rpx;
  }
}
</style>
